
public class Tree {
    public static void branch(Turtle t,double l, int order)
    {
        if (order<=0) return;
        t.forward(l);
        Turtle u=t.clone();
        u.left(30);
        t.right(60);
        branch(u,l*.8,order-1);
        branch(t,l*.7,order-1);
    }


    public static void main(String[] args)
    {
        Turtle bob=new Turtle();
        bob.hide();
        bob.width(.5);
        bob.left(90);
        bob.speed(0);
        branch(bob,60,10);
    }

}
